package com.xx;


public class Demo implements DemoMBean {

    private String info;

    @Override
    public String getInfo() {
        System.out.println("有人获取的信息");
        return info;
    }

    @Override
    public String setAndReturnInfo(String info) {
        this.info = info;
        System.out.println("有人刷新了信息：" + info);
        return info;
    }
}
